package com.feihong.txgw.model.greendao;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

/**
 * @Author wangziheng
 * @ProjectName txgw_app
 * @ClassName ShopCarGoodsModel
 * @package com.feihong.txgw.model.greendao
 * @data 2018/5/2 11:12
 * @Describe
 * @Change
 */

@Entity(generateConstructors = false)
public class ShopCarGoodsModel {
    @Id
    private Long id;

    /**
     * 商品id
     */
    private int goodsID;

    /**
     * 商品名称
     */
    private String goodsName;
    /**
     * 商品价格
     */
    private float goodsPrice;

    /**
     * 商品图片
     */
    private String goodsPic;
    /**
     * 本账户所拥有的商品数量
     */
    private int goodsNum;
    /**
     * 是否更新
     */
    private int isUpdate;
    /**
     * 添加时间
     */
    private long addTime;
    /**
     * 账户名
     */
    private long userID;
    /**
     * 商品属性
     */
    private String goodsSpec;
    /**
     * 商品描述
     */
    private String goodsSubtitle;
    /**
     * 服务端库存量
     */
    private int goodsAllNum;
    /**
     * 商品状态  1 正常 0 失效  -1
     */
    private int goodsStatus = 1;
    /**
     * 服务端数据库商品主键id
     */
    private int primaryKey;
    /**
     * 商品sn
     */
    private String sn;
    /**
     * 本件商品是否被选中
     */
    private boolean isCheck;
    /**
     * 操作商品的行为
     */
    private String action;
    public ShopCarGoodsModel() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public int getGoodsID() {
        return this.goodsID;
    }
    public void setGoodsID(int goodsID) {
        this.goodsID = goodsID;
    }
    public String getGoodsName() {
        return this.goodsName;
    }
    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }
    public float getGoodsPrice() {
        return this.goodsPrice;
    }
    public void setGoodsPrice(float goodsPrice) {
        this.goodsPrice = goodsPrice;
    }
    public String getGoodsPic() {
        return this.goodsPic;
    }
    public void setGoodsPic(String goodsPic) {
        this.goodsPic = goodsPic;
    }
    public int getGoodsNum() {
        return this.goodsNum;
    }
    public void setGoodsNum(int goodsNum) {
        this.goodsNum = goodsNum;
    }
    public int getIsUpdate() {
        return this.isUpdate;
    }
    public void setIsUpdate(int isUpdate) {
        this.isUpdate = isUpdate;
    }
    public long getAddTime() {
        return this.addTime;
    }
    public void setAddTime(long addTime) {
        this.addTime = addTime;
    }
    public long getUserID() {
        return this.userID;
    }
    public void setUserID(long userID) {
        this.userID = userID;
    }
    public String getGoodsSpec() {
        return this.goodsSpec;
    }
    public void setGoodsSpec(String goodsSpec) {
        this.goodsSpec = goodsSpec;
    }
    public String getGoodsSubtitle() {
        return this.goodsSubtitle;
    }
    public void setGoodsSubtitle(String goodsSubtitle) {
        this.goodsSubtitle = goodsSubtitle;
    }
    public int getGoodsAllNum() {
        return this.goodsAllNum;
    }
    public void setGoodsAllNum(int goodsAllNum) {
        this.goodsAllNum = goodsAllNum;
    }
    public int getGoodsStatus() {
        return this.goodsStatus;
    }
    public void setGoodsStatus(int goodsStatus) {
        this.goodsStatus = goodsStatus;
    }
    public int getPrimaryKey() {
        return this.primaryKey;
    }
    public void setPrimaryKey(int primaryKey) {
        this.primaryKey = primaryKey;
    }
    public String getSn() {
        return this.sn;
    }
    public void setSn(String sn) {
        this.sn = sn;
    }
    public boolean getIsCheck() {
        return this.isCheck;
    }
    public void setIsCheck(boolean isCheck) {
        this.isCheck = isCheck;
    }
    public String getAction() {
        return this.action;
    }
    public void setAction(String action) {
        this.action = action;
    }
}
